package com.farewell.hotel.service.impl;

import com.farewell.hotel.mapper.OneMenuMapper;
import com.farewell.hotel.pojo.OneMenu;
import com.farewell.hotel.service.OneMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Farewell
 * @date 2021/4/21
 */
@Service("OneMenuService")
public class OneMenuServiceImpl implements OneMenuService {
    @Autowired
    private OneMenuMapper oneMenuMapper;

    @Override
    public List<OneMenu> findOneMenuByUserId(Long userId) {
        return oneMenuMapper.findOneMenuByUserId(userId);
    }
}
